package chapter05

object Test13_Lazy {
  def main(args: Array[String]): Unit = {
    def sum(a: Int, b: Int): Int = {
      println("3. 执行加法操作")
      a + b
    }

    lazy val result: Int = sum(13, 47)
    println("1, 函数调用")
    println("2. result " + result)
    println("4. result " + result)
  }


}
